package org.dromara.demo.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.demo.domain.TestDemo3;

import java.util.List;

/**
 * 测试关联表业务对象 test_demo3
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TestDemo3.class, reverseConvertGenerate = false)
public class TestDemo3Bo extends BaseEntity {

  /**
   * 主键
   */
  @NotNull(message = "主键不能为空", groups = {EditGroup.class})
  private Long id;

  /**
   * 名称
   */
  @NotBlank(message = "名称不能为空", groups = {AddGroup.class, EditGroup.class})
  private String name;


  /**
   * 状态
   */
  @NotBlank(message = "状态不能为空", groups = {AddGroup.class, EditGroup.class})
  private String status;

  /**
   * 值
   */
  private String remark;

  /**
   * 关联伙伴集合
   */
  private List<Long> partnerIds;

  /**
   * 关联部门集合
   */
  private List<Long> deptIds;

}
